#!/bin/bash
#


if [[ $# < 1 ]];then
    echo; echo "Usage: $0 pod_numbers"; echo;
    exit 1
fi

KEYWORDS=kafka-broker

NAMESPACE=__NAMESPACE

KUBESERVER=__KUBE_MASTER

PODNUM=$1

kubectl --server=${KUBESERVER} scale rc ${KEYWORDS} --replicas=$PODNUM --namespace=spark-cluster

